#ifndef __LIBCOMMON_IOIF_H__
#define __LIBCOMMON_IOIF_H__

#include "../stdarg.h"

void printfmt(void (*putch)(int, void*), void *putdat, const char *fmt, ...);
void vprintfmt(void (*putch)(int, void*), void *putdat, const char *fmt, va_list);

int snprintf(char *str, int size, const char *fmt, ...);
int vsnprintf(char *str, int size, const char *fmt, va_list);

#endif
